package com.micro.shop.model;

import java.io.Serializable;

public class User implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : uid
     */
    private Integer uid;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : nickname
     */
    private String nickname;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : password
     */
    private String password;

    /**
     * 手机号
     * 表 : bestfenxiao_user
     * 对应字段 : phone
     */
    private String phone;

    /**
     * 微信唯一标识
     * 表 : bestfenxiao_user
     * 对应字段 : openid
     */
    private String openid;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : reg_time
     */
    private Integer regTime;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : reg_ip
     */
    private Long regIp;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : last_time
     */
    private Integer lastTime;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : last_ip
     */
    private Long lastIp;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : check_phone
     */
    private Integer checkPhone;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : login_count
     */
    private Integer loginCount;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : status
     */
    private Integer status;

    /**
     * 个人签名
     * 表 : bestfenxiao_user
     * 对应字段 : intro
     */
    private String intro;

    /**
     * 头像
     * 表 : bestfenxiao_user
     * 对应字段 : avatar
     */
    private String avatar;

    /**
     * 是否是微信用户 0否 1是
     * 表 : bestfenxiao_user
     * 对应字段 : is_weixin
     */
    private Integer isWeixin;

    /**
     * 店铺数量
     * 表 : bestfenxiao_user
     * 对应字段 : stores
     */
    private Integer stores;

    /**
     * 微信token
     * 表 : bestfenxiao_user
     * 对应字段 : token
     */
    private String token;

    /**
     * 剩余短信数量
     * 表 : bestfenxiao_user
     * 对应字段 : smscount
     */
    private Integer smscount;

    /**
     * session id
     * 表 : bestfenxiao_user
     * 对应字段 : session_id
     */
    private String sessionId;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : server_key
     */
    private String serverKey;

    /**
     * 来源网站
     * 表 : bestfenxiao_user
     * 对应字段 : source_site_url
     */
    private String sourceSiteUrl;

    /**
     * 站外支付地址
     * 表 : bestfenxiao_user
     * 对应字段 : payment_url
     */
    private String paymentUrl;

    /**
     * 通知地址
     * 表 : bestfenxiao_user
     * 对应字段 : notify_url
     */
    private String notifyUrl;

    /**
     * 对接网站用户认证地址
     * 表 : bestfenxiao_user
     * 对应字段 : oauth_url
     */
    private String oauthUrl;

    /**
     * 是否是卖家
     * 表 : bestfenxiao_user
     * 对应字段 : is_seller
     */
    private Integer isSeller;

    /**
     * 第三方id
     * 表 : bestfenxiao_user
     * 对应字段 : third_id
     */
    private String thirdId;

    /**
     * 用户所属店铺
     * 表 : bestfenxiao_user
     * 对应字段 : drp_store_id
     */
    private Integer drpStoreId;

    /**
     * 对接应用id
     * 表 : bestfenxiao_user
     * 对应字段 : app_id
     */
    private Integer appId;

    /**
     * 后台ID
     * 表 : bestfenxiao_user
     * 对应字段 : admin_id
     */
    private Integer adminId;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : item_store_id
     */
    private Integer itemStoreId;

    /**
     * 
     * 表 : bestfenxiao_user
     * 对应字段 : type
     */
    private Integer type;

    /**
     * 1:需要绑定手机号方可登陆wap，2.无需绑定即可登陆
     * 表 : bestfenxiao_user
     * 对应字段 : weixin_bind
     */
    private Integer weixinBind;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_user
     *
     * @mbggenerated Sat Apr 21 17:39:18 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_user.uid：
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * set method 
     *
     * @param uid  
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.nickname：
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * set method 
     *
     * @param nickname  
     */
    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.password：
     */
    public String getPassword() {
        return password;
    }

    /**
     * set method 
     *
     * @param password  
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.phone：手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * set method 
     *
     * @param phone  手机号
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.openid：微信唯一标识
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * set method 
     *
     * @param openid  微信唯一标识
     */
    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.reg_time：
     */
    public Integer getRegTime() {
        return regTime;
    }

    /**
     * set method 
     *
     * @param regTime  
     */
    public void setRegTime(Integer regTime) {
        this.regTime = regTime;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.reg_ip：
     */
    public Long getRegIp() {
        return regIp;
    }

    /**
     * set method 
     *
     * @param regIp  
     */
    public void setRegIp(Long regIp) {
        this.regIp = regIp;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.last_time：
     */
    public Integer getLastTime() {
        return lastTime;
    }

    /**
     * set method 
     *
     * @param lastTime  
     */
    public void setLastTime(Integer lastTime) {
        this.lastTime = lastTime;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.last_ip：
     */
    public Long getLastIp() {
        return lastIp;
    }

    /**
     * set method 
     *
     * @param lastIp  
     */
    public void setLastIp(Long lastIp) {
        this.lastIp = lastIp;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.check_phone：
     */
    public Integer getCheckPhone() {
        return checkPhone;
    }

    /**
     * set method 
     *
     * @param checkPhone  
     */
    public void setCheckPhone(Integer checkPhone) {
        this.checkPhone = checkPhone;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.login_count：
     */
    public Integer getLoginCount() {
        return loginCount;
    }

    /**
     * set method 
     *
     * @param loginCount  
     */
    public void setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.status：
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * set method 
     *
     * @param status  
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.intro：个人签名
     */
    public String getIntro() {
        return intro;
    }

    /**
     * set method 
     *
     * @param intro  个人签名
     */
    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.avatar：头像
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * set method 
     *
     * @param avatar  头像
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.is_weixin：是否是微信用户 0否 1是
     */
    public Integer getIsWeixin() {
        return isWeixin;
    }

    /**
     * set method 
     *
     * @param isWeixin  是否是微信用户 0否 1是
     */
    public void setIsWeixin(Integer isWeixin) {
        this.isWeixin = isWeixin;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.stores：店铺数量
     */
    public Integer getStores() {
        return stores;
    }

    /**
     * set method 
     *
     * @param stores  店铺数量
     */
    public void setStores(Integer stores) {
        this.stores = stores;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.token：微信token
     */
    public String getToken() {
        return token;
    }

    /**
     * set method 
     *
     * @param token  微信token
     */
    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.smscount：剩余短信数量
     */
    public Integer getSmscount() {
        return smscount;
    }

    /**
     * set method 
     *
     * @param smscount  剩余短信数量
     */
    public void setSmscount(Integer smscount) {
        this.smscount = smscount;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.session_id：session id
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * set method 
     *
     * @param sessionId  session id
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId == null ? null : sessionId.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.server_key：
     */
    public String getServerKey() {
        return serverKey;
    }

    /**
     * set method 
     *
     * @param serverKey  
     */
    public void setServerKey(String serverKey) {
        this.serverKey = serverKey == null ? null : serverKey.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.source_site_url：来源网站
     */
    public String getSourceSiteUrl() {
        return sourceSiteUrl;
    }

    /**
     * set method 
     *
     * @param sourceSiteUrl  来源网站
     */
    public void setSourceSiteUrl(String sourceSiteUrl) {
        this.sourceSiteUrl = sourceSiteUrl == null ? null : sourceSiteUrl.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.payment_url：站外支付地址
     */
    public String getPaymentUrl() {
        return paymentUrl;
    }

    /**
     * set method 
     *
     * @param paymentUrl  站外支付地址
     */
    public void setPaymentUrl(String paymentUrl) {
        this.paymentUrl = paymentUrl == null ? null : paymentUrl.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.notify_url：通知地址
     */
    public String getNotifyUrl() {
        return notifyUrl;
    }

    /**
     * set method 
     *
     * @param notifyUrl  通知地址
     */
    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl == null ? null : notifyUrl.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.oauth_url：对接网站用户认证地址
     */
    public String getOauthUrl() {
        return oauthUrl;
    }

    /**
     * set method 
     *
     * @param oauthUrl  对接网站用户认证地址
     */
    public void setOauthUrl(String oauthUrl) {
        this.oauthUrl = oauthUrl == null ? null : oauthUrl.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.is_seller：是否是卖家
     */
    public Integer getIsSeller() {
        return isSeller;
    }

    /**
     * set method 
     *
     * @param isSeller  是否是卖家
     */
    public void setIsSeller(Integer isSeller) {
        this.isSeller = isSeller;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.third_id：第三方id
     */
    public String getThirdId() {
        return thirdId;
    }

    /**
     * set method 
     *
     * @param thirdId  第三方id
     */
    public void setThirdId(String thirdId) {
        this.thirdId = thirdId == null ? null : thirdId.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.drp_store_id：用户所属店铺
     */
    public Integer getDrpStoreId() {
        return drpStoreId;
    }

    /**
     * set method 
     *
     * @param drpStoreId  用户所属店铺
     */
    public void setDrpStoreId(Integer drpStoreId) {
        this.drpStoreId = drpStoreId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.app_id：对接应用id
     */
    public Integer getAppId() {
        return appId;
    }

    /**
     * set method 
     *
     * @param appId  对接应用id
     */
    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.admin_id：后台ID
     */
    public Integer getAdminId() {
        return adminId;
    }

    /**
     * set method 
     *
     * @param adminId  后台ID
     */
    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.item_store_id：
     */
    public Integer getItemStoreId() {
        return itemStoreId;
    }

    /**
     * set method 
     *
     * @param itemStoreId  
     */
    public void setItemStoreId(Integer itemStoreId) {
        this.itemStoreId = itemStoreId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.type：
     */
    public Integer getType() {
        return type;
    }

    /**
     * set method 
     *
     * @param type  
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user.weixin_bind：1:需要绑定手机号方可登陆wap，2.无需绑定即可登陆
     */
    public Integer getWeixinBind() {
        return weixinBind;
    }

    /**
     * set method 
     *
     * @param weixinBind  1:需要绑定手机号方可登陆wap，2.无需绑定即可登陆
     */
    public void setWeixinBind(Integer weixinBind) {
        this.weixinBind = weixinBind;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getRegTime() == null ? other.getRegTime() == null : this.getRegTime().equals(other.getRegTime()))
            && (this.getRegIp() == null ? other.getRegIp() == null : this.getRegIp().equals(other.getRegIp()))
            && (this.getLastTime() == null ? other.getLastTime() == null : this.getLastTime().equals(other.getLastTime()))
            && (this.getLastIp() == null ? other.getLastIp() == null : this.getLastIp().equals(other.getLastIp()))
            && (this.getCheckPhone() == null ? other.getCheckPhone() == null : this.getCheckPhone().equals(other.getCheckPhone()))
            && (this.getLoginCount() == null ? other.getLoginCount() == null : this.getLoginCount().equals(other.getLoginCount()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIntro() == null ? other.getIntro() == null : this.getIntro().equals(other.getIntro()))
            && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
            && (this.getIsWeixin() == null ? other.getIsWeixin() == null : this.getIsWeixin().equals(other.getIsWeixin()))
            && (this.getStores() == null ? other.getStores() == null : this.getStores().equals(other.getStores()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))
            && (this.getSmscount() == null ? other.getSmscount() == null : this.getSmscount().equals(other.getSmscount()))
            && (this.getSessionId() == null ? other.getSessionId() == null : this.getSessionId().equals(other.getSessionId()))
            && (this.getServerKey() == null ? other.getServerKey() == null : this.getServerKey().equals(other.getServerKey()))
            && (this.getSourceSiteUrl() == null ? other.getSourceSiteUrl() == null : this.getSourceSiteUrl().equals(other.getSourceSiteUrl()))
            && (this.getPaymentUrl() == null ? other.getPaymentUrl() == null : this.getPaymentUrl().equals(other.getPaymentUrl()))
            && (this.getNotifyUrl() == null ? other.getNotifyUrl() == null : this.getNotifyUrl().equals(other.getNotifyUrl()))
            && (this.getOauthUrl() == null ? other.getOauthUrl() == null : this.getOauthUrl().equals(other.getOauthUrl()))
            && (this.getIsSeller() == null ? other.getIsSeller() == null : this.getIsSeller().equals(other.getIsSeller()))
            && (this.getThirdId() == null ? other.getThirdId() == null : this.getThirdId().equals(other.getThirdId()))
            && (this.getDrpStoreId() == null ? other.getDrpStoreId() == null : this.getDrpStoreId().equals(other.getDrpStoreId()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getAdminId() == null ? other.getAdminId() == null : this.getAdminId().equals(other.getAdminId()))
            && (this.getItemStoreId() == null ? other.getItemStoreId() == null : this.getItemStoreId().equals(other.getItemStoreId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getWeixinBind() == null ? other.getWeixinBind() == null : this.getWeixinBind().equals(other.getWeixinBind()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getRegTime() == null) ? 0 : getRegTime().hashCode());
        result = prime * result + ((getRegIp() == null) ? 0 : getRegIp().hashCode());
        result = prime * result + ((getLastTime() == null) ? 0 : getLastTime().hashCode());
        result = prime * result + ((getLastIp() == null) ? 0 : getLastIp().hashCode());
        result = prime * result + ((getCheckPhone() == null) ? 0 : getCheckPhone().hashCode());
        result = prime * result + ((getLoginCount() == null) ? 0 : getLoginCount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIntro() == null) ? 0 : getIntro().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getIsWeixin() == null) ? 0 : getIsWeixin().hashCode());
        result = prime * result + ((getStores() == null) ? 0 : getStores().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        result = prime * result + ((getSmscount() == null) ? 0 : getSmscount().hashCode());
        result = prime * result + ((getSessionId() == null) ? 0 : getSessionId().hashCode());
        result = prime * result + ((getServerKey() == null) ? 0 : getServerKey().hashCode());
        result = prime * result + ((getSourceSiteUrl() == null) ? 0 : getSourceSiteUrl().hashCode());
        result = prime * result + ((getPaymentUrl() == null) ? 0 : getPaymentUrl().hashCode());
        result = prime * result + ((getNotifyUrl() == null) ? 0 : getNotifyUrl().hashCode());
        result = prime * result + ((getOauthUrl() == null) ? 0 : getOauthUrl().hashCode());
        result = prime * result + ((getIsSeller() == null) ? 0 : getIsSeller().hashCode());
        result = prime * result + ((getThirdId() == null) ? 0 : getThirdId().hashCode());
        result = prime * result + ((getDrpStoreId() == null) ? 0 : getDrpStoreId().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getAdminId() == null) ? 0 : getAdminId().hashCode());
        result = prime * result + ((getItemStoreId() == null) ? 0 : getItemStoreId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getWeixinBind() == null) ? 0 : getWeixinBind().hashCode());
        return result;
    }
}